package com.nep.controller;

import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.stage.Stage;

public class ErrorAlertViewController {
    @FXML
    private Label errorTitle;
    @FXML
    private Label errorMessage;
    private Stage stage;

    public void setStage(Stage stage) {
        this.stage = stage;
    }

    public void setErrorTitle(String title) {
        errorTitle.setText(title);
    }

    public void setErrorMessage(String message) {
        errorMessage.setText(message);
    }

    @FXML
    public void close() {
        stage.close();
    }
} 